function mutation(arr) {
    let text = arr[0].toLowerCase();
    let key = arr[1].toLowerCase().split('');
    return key.every((k) => (text.indexOf(k) >= 0));
}

let result = mutation(["hello", "hey"]);
console.log(result);